var work={
	/*·····························初始化························*/
	init:function(){
		this.eventListen();
	},
	/*·····························事件监听························*/
	eventListen:function(){
		// 创建工单
		$(document).on("click","#createOrder",function(){
			var url='/index.php?m=Service&c=Order&a=create&id='+info.id;
			var title="创建工单";
			work.layerOpen(title,url);
		});
		// 切换用户
		$(document).on("click","#changeUser",function(){
			window.location.href="/index.php?m=Service&c=Center&a=choice&tel="+info.tel;
		});
	},
	/*·····························功能性函数························*/
	// iframe页面弹窗
	layerOpen:function(title,url){
		layer.open({
			type: 2,
			area: ['800px', '600px'],
			fix: false, //不固定
			maxmin: true,
			shade:0.4,
			title: title,
			content:url,
		});
	}
}